﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DotNetNuke.Tests.UI.WatiN.Common;
using DotNetNuke.Tests.UI.WatiN.Common.WatiNObjects;
using MbUnit.Framework;
using WatiN.Core;

namespace YourCompany.Modules.$safeprojectname$
{
    [TestFixture]
    public class TDD$safeprojectname$Tests : TestBase
    {
        #region "Private Members"
        private IE _instance;
        #endregion

        #region "Setup/Teardown"
        /// <summary>
        /// Sets up.
        /// </summary>
        [SetUp]
        public void SetUp()
        {
            _instance = WatiNUtil.OpenIEInstance(SiteURL, SilentMode, IETimeOut, AutoCloseIE);
            var homePage = new WatiNBase(_instance, SiteURL);
            var loginPage = new LoginPage(homePage);
            loginPage.LoginUser(TestUsers.AdminUpdatedPassword.UserName, TestUsers.AdminUpdatedPassword.Password);
            _instance.GoTo(SiteURL + "/TDD$safeprojectname$.aspx");
            //_editPage = new EditPage(homePage);
        }

        /// <summary>
        /// Tears down.
        /// </summary>
        [TearDown]
        public void TearDown()
        {
            _instance.GoTo(SiteURL + "/LogOff.aspx");
            WatiNUtil.CloseIEInstance(_instance);
        }
        #endregion

        #region "Test Methods"
        /// <summary>
        /// Module_s the loads_ at_ least_ one_ record.
        /// </summary>
        [Test]
        public void Module_Loads_At_Least_One_Record()
        {

        }
        #endregion
    }
}
